﻿namespace EggOfPanKu.Library.Objects
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Xml;
    using System.Xml.Linq;

    public class Holding : Card
    {
        #region Fields

        private string _Cost;

        //WishList item
        private string _Gold;

        #endregion Fields

        #region Constructors

        public Holding(string CardID)
            : base(CardID)
        {
        }

        public Holding(XElement CardNode)
            : base(CardNode)
        {
            //Set Cost
            Cost = (string)CardNode.Element("cost");
            if (String.IsNullOrEmpty(Cost))
                ParseWarning("Cost");
        }

        #endregion Constructors

        #region Properties

        public override CardType CardType
        {
            get { return CardType.Holding; }
        }

        public string Cost
        {
            get { return _Cost; }
            set { _Cost = value; }
        }

        public override CardDeck DeckType
        {
            get { return CardDeck.Dynasty; }
        }

        public string Gold
        {
            get { return _Gold; }
            set { _Gold = value; }
        }

        #endregion Properties
    }
}